package com.finance.rule.export;

import com.finance.framework.lang.BeanUtils;
import com.finance.rule.bean.pojo.NewPieceRule;
import com.finance.util.export.ExportBeanParse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class NewPieceRuleParse extends ExportBeanParse<NewPieceRule,NewPieceRuleImportTemplateBean> {
    private final Logger logger= LoggerFactory.getLogger(this.getClass());
    @Override
    protected NewPieceRuleImportTemplateBean parse(NewPieceRule newPieceRule) {
        NewPieceRuleImportTemplateBean bean=new NewPieceRuleImportTemplateBean();
        try {
            BeanUtils.copyProperties(bean,newPieceRule);
        }catch (Exception e){
            logger.error("拷贝类失败",e);
        }
        return bean;
    }
}
